package com.esreport.Utils;

/**
 * @author xuweiwei
 * @date 2019/7/5
 */
public class NumberUtil {

    public static int parseInt(String str) {
        if (str == null) {
            return 0;
        }
        try {
            return Integer.parseInt(str);
        } catch (NumberFormatException e) {
            return 0;
        }
    }

}
